#pragma once
#include <QCoreApplication>
#include "../basecommentlib_global.h"

class BASECOMMENTLIB_EXPORT GlobalLog
{
public:
	static GlobalLog &getInstance()
	{
		static GlobalLog instance;
		return instance;
	}
public:
	GlobalLog();
	static void InitInstance();

	static  void WriteInfoLog(QString strLog,bool bNeedCodec = true);

	static  void WriteErrorLog(QString strLog, bool bNeedCodec = true);

private:
	QTextCodec* m_Coder;
};

